import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int num = 9;
        judgePrimeNumber(num);
    }

    public static void judgePrimeNumber(int num){
        for (int i = 2; i <= Math.sqrt(num); i++) {
            if (num % i == 0){
                System.out.println(num + "不是素数");
            }
            if (i > Math.sqrt(num)){
                System.out.println(num + "是素数");
            }
        }
    }
}



